//
//  UIImageView+WebCache.m
//  WebImageDemo
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 浮夸. All rights reserved.
//

#import "UIImageView+WebCache.h"
#import "ImageDownloader.h"
@implementation UIImageView (WebCache)

- (void)dt_setImageWithUrl:(NSURL *)url
{
    [ self dt_setImageWithUrl:url holderImagge:nil];
}

- (void)dt_setImageWithUrl:(NSURL *)url holderImagge:(UIImage *)holderImage
{
    self.image = holderImage;
    [[ImageDownloader shareLoader]downloadImageWithUrl:url result:^(UIImage *img) {
        self.image = img;
    }];
}
@end
